package com.huixuebao.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huixuebao.api.entity.BaseDivision;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface BaseDivisionMapper extends BaseMapper<BaseDivision> {
    /**
     * 根据父Id查询子集列表
     * @param pid
     * @return
     */
    List<BaseDivision> queryDivisionByPid(String pid);

    List<BaseDivision>  regionList();

}
